/*
 * @Description: 首页显示固定广告
 * @Date: 2021-03-12 15:48:38
 * @Author: 黄治恩
 */

import { UPDATE_SHOWFIXED } from '../constant/showFixed'

export interface RootAction {
  type: string,
  data: boolean
}

//初始化人的列表
const initState: boolean = false

export default function showFixedReducer(preState = initState, action:RootAction){
	const {type,data} = action
	switch (type) {
		case UPDATE_SHOWFIXED: 
			return data
		default:
			return preState
	}
}